package lhdx12;

import java.util.Scanner;

public class TeacherTest {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入年龄：");
        try {
            Teacher a=new Teacher("张三","北大");
            a.setNianL(in.nextInt());
            a.shangKe();
            a.jieS();
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
